package com.leyou.lyitem.mapper;

import com.leyou.item.pojo.Brand;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface BrandMapper extends Mapper<Brand> {

    @Insert("insert into tb_category_brand (category_id, brand_id) values (#{cid},#{bid})")
    public void insertCategoryBrand(@Param("cid") Long cid,@Param("bid") Long id);

    @Delete("delete from tb_category_brand where brand_id = #{bid} ")
    public void deleteCategoryBrand(@Param("bid") Long bid);
}
